package com.chinasoft.goodsManager.service.impl;

import com.chinasoft.goodsManager.dao.OrderDao;
import com.chinasoft.goodsManager.dao.impl.OrderDaoImpl;
import com.chinasoft.goodsManager.doamain.Order;
import com.chinasoft.goodsManager.service.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {
    @Override
    public List<Order> findAll() {
        OrderDao dao = new OrderDaoImpl();
        return dao.findAll();
    }

    @Override
    public boolean del(String str) {
        OrderDao dao = new OrderDaoImpl();
        return dao.del(str);
    }

    @Override
    public boolean add(Order order) {
        OrderDao dao = new OrderDaoImpl();
        return dao.add(order);
    }

    @Override
    public List<Order> find(String str) {
        OrderDao dao = new OrderDaoImpl();
        return dao.find(str);
    }

    @Override
    public boolean update(Order order) {
        OrderDao dao = new OrderDaoImpl();
        return dao.update(order);
    }
}
